23 #define foreach(x, v) for (typeof (v).begin() x=(v).begin(); x !=(v).end(); ++x)
24 #define For(i, a, b) for (int i=(a); i<(b); ++i)
25 #define D(x) cout << #x " is " << x << endl
29 while (cin
>> a
>> b
>> c
) {
30 if (a
== 0 and b
== 0 and c
== 0) break;
31 if(a
* a
== b
* b
+ c
* c
|| b
* b
== a
* a
+ c
* c
|| c
* c
== b
* b
+ a
* a
){
32 cout
<< "right" << endl
;
34 cout
<< "wrong" << endl
;